reftests: Fix up for easy CSS changes
authorBenjamin Otte <otte@redhat.com>
Mon, 18 Jan 2016 04:04:12 +0000 (05:04 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 18 Jan 2016 04:05:35 +0000 (05:05 +0100)
This is mostly search and replace ala
  GtkButton => button
  GtkWindow => window
  .button => button
or removing style properties that aren't used anymore like
  -GtkButton-default-border: 0

34 files changed:
testsuite/reftests/background-area.css
testsuite/reftests/background-color-transparent.css
testsuite/reftests/background-origin.css
testsuite/reftests/background-position.css
testsuite/reftests/background-size.css
testsuite/reftests/background-window-transparent.css
testsuite/reftests/border-color-default.css
testsuite/reftests/border-corner-zero-width-rendering.css
testsuite/reftests/border-half-pixel.css
testsuite/reftests/border-image-excess-size.css
testsuite/reftests/border-image-gradient.css
testsuite/reftests/border-radius-clamp.css
testsuite/reftests/border-style-none.css
testsuite/reftests/border-style.css
testsuite/reftests/box-pseudo-classes.css
testsuite/reftests/color-transition.css
testsuite/reftests/css-currentcolor-alpha.css
testsuite/reftests/css-match-class.css
testsuite/reftests/css-match-descendant-later.css
testsuite/reftests/css-match-inherit-different-state.css
testsuite/reftests/css-match-inherit.css
testsuite/reftests/css-match-name.css
testsuite/reftests/css-match-type.css
testsuite/reftests/css-multi-state.css
testsuite/reftests/gtk-icontheme-sizing.css
testsuite/reftests/icon-shadow-no-transform.css
testsuite/reftests/iconview-empty.css
testsuite/reftests/image-icon-shadow-clipping.css
testsuite/reftests/label-background.css
testsuite/reftests/label-shadows.css
testsuite/reftests/opacity.css
testsuite/reftests/shorthand-entry-border.css
testsuite/reftests/treeview-fixed-height.css
testsuite/reftests/unresolvable.css

index 93870ea8ed13e81b31ef744a080f0630cfda13a7..36a3fa3552605acb8b4e8f1308b7f7695b818340 100644 (file)
@@ -1,21 +1,15 @@
 @import "reset-to-defaults.css";
 
-GtkWindow {
+window {
   background-color: rgb(0,255,0);
 }
 
-GtkButton {
+button {
   border-width: 5px;
   border-style: solid;
   border-color: rgba(255,0,0,0.6);
   padding: 10px;
   background-color: rgb(0,0,255);
-
-  /* Make sure children of button are only offset by padding */
-  -GtkButton-default-border: 0;
-  -GtkButton-inner-border: 0;
-  -GtkWidget-focus-line-width: 0;
-  -GtkWidget-focus-padding: 0;
 }
 
 #button1 {
index 031f6b97ca5860131b2ead9265cefb94f938a68a..0d5f5ee2a6415d13d573f8999458a16d6fd5f2be 100644 (file)
@@ -4,7 +4,7 @@
   background-color: purple;
 }
 
-GtkButton {
+button {
   background-color: blue;
 }
 .transparent {
index aa8c4a9f19b71f836d0fad9d8fd9d87d001ced61..53ad92b586a4abed3c1ff8bc4e87b2c301a139fe 100644 (file)
@@ -1,10 +1,10 @@
 @import "reset-to-defaults.css";
 
-GtkWindow {
+window {
   background-color: rgb(255,255,255);
 }
 
-GtkButton {
+button {
   border-width: 5px;
   border-style: solid;
   border-color: rgba(255,0,0,0.5);
@@ -52,7 +52,7 @@ GtkButton {
   background-clip: content-box;
 }
 
-GtkButton#reference {
+button#reference {
   border-width: 0;
   background-image: url("reference-background-origin.png");
 }
index aff4d1544ecd4c3c5e33806e32479fe243056323..ff2df307fa09becec644318e19cf5582d267c59b 100644 (file)
@@ -1,17 +1,17 @@
 @import "reset-to-defaults.css";
 
-.button {
+button {
   background-image: url("green-20x20.png");
   background-repeat: no-repeat;
   background-color: red;
 }
 
-.button#ref {
+button#ref {
   background-image: none;
   background-color: lime;
 }
 
-GtkWindow#ref {
+window#ref {
   background-color: red;
 }
 
index aae6f9f3502b3a1011c2419ccf0f4ee0f58714ee..5a6d70e24ef70e35008a1a35044d30f6049d9505 100644 (file)
@@ -1,6 +1,6 @@
 @import "reset-to-defaults.css";
 
-.button {
+button {
   background-image: url("border-image-balls.png");
   color: black;
   text-shadow: 1px 1px white;
index af5e534579460562d0bdd39227b4bfd481e1e91e..ecfec47906e00b4855ae665ebddadfb5cd8746ef 100644 (file)
@@ -1,5 +1,5 @@
 @import "reset-to-defaults.css";
 
-GtkWindow { background-color: lime; }
+window { background-color: lime; }
 
 #reference * { background-color: lime; }
index 4efe0e0963fa5d642144fcd4280fbe7ab612a793..6c64119b3cea53ecfe9f82b46993f84fc8e74587 100644 (file)
@@ -4,7 +4,7 @@
   border-width: 5px;
 }
 
-GtkButton {
+button {
   /* using a nonexistant color because that will lead to the default value */
   border-color: @doesnotexist;
   color: purple;
index e2cdaecc886dd75807ad6494f50e2131dc76d082..30cdcda102566d33df256a5e783396f4814138aa 100644 (file)
@@ -7,7 +7,7 @@
   color: purple;
 }
 
-.button {
+button {
   border-radius: 10px;
   padding: 5px;
 }
index bdfc5fe98d6dcc7441cbaa1def5f40f13bf71ef6..6ddf65565672bdbf39a84ac5a74570d74476a68b 100644 (file)
@@ -1,6 +1,6 @@
 @import "reset-to-defaults.css";
 
-.button {
+button {
   border-top: 0.5px solid red;
   border-bottom: 0.5px solid blue;
 }
index d6644f28cfc3619669f40479719b3f40e45303e8..5b22f955cff9efb8dfc8e4413bdc0e6bf5a3cd0d 100644 (file)
@@ -1,5 +1,6 @@
+@import "reset-to-defaults.css";
+
 * {
-  engine: none;
   border-image: url("green-20x20.png") 5000;
   background-image: none;
   background-color: #000;
@@ -9,7 +10,7 @@
   border-radius: 0;
 }
 
-GtkGrid * {
+grid * {
   background-color: lime;
   border-style: none;
   border-width: 0;
index 38e665704d01aa1b7eb70989e72ee6a8b27b8653..be92981f82932cffa8ee1febe69d9f1a8d6b9ed8 100644 (file)
@@ -1,5 +1,4 @@
 * {
-  engine: none;
   border-image: none;
   border-radius: 0;
   border-style: solid;
index d8ec308fa3b1173a9f12aaa4218e7576781780b8..c908eea8560a8933f5a284594f9aebf882430256 100644 (file)
@@ -1,5 +1,4 @@
 .progressbar {
-  engine: none;
   border-image: none;
   border-radius: 25px;
 }
index 25e2e98969939ddfb9b076d8b4954d9bfca6225d..f5fe68d3e04fe28e309dfac6a0447d7cb7af37fa 100644 (file)
@@ -3,7 +3,7 @@
   border-color: red;
 }
 
-GtkButton {
+button {
   background-color: purple;
   border-style: none;
   border-width: 5px;
index d295cb6fbd7a0e661697fde903c5da3a47881e05..d5471845a60443335975f8b078dd45868d767409 100644 (file)
@@ -1,6 +1,6 @@
 @import url("reset-to-defaults.css");
 
-GtkButton {
+button {
   background-color: red;
   border-color: lime;
   border-width: 1px;
index a89abed3ea0f7f344bfe461b19d45785f431dc98..5aed8d07cc445d11ef02f229ee1f27b964c7c6a5 100644 (file)
@@ -1,29 +1,28 @@
 * {
-  engine: none;
   background-image: none;
 }
 
-.button:nth-child(even) {
+button:nth-child(even) {
   background-color: yellow;
 }
 
-.button:nth-child(odd) {
+button:nth-child(odd) {
   background-color: red;
 }
 
-.button:nth-child(first) {
+button:nth-child(first) {
   background-color: purple;
 }
 
-.button:nth-child(last):nth-child(even) {
+button:nth-child(last):nth-child(even) {
   background-color: lime;
 }
 
-.button:nth-child(last):nth-child(odd) {
+button:nth-child(last):nth-child(odd) {
   background-color: purple;
 }
 
-.button:nth-child(last):nth-child(first) {
+button:nth-child(last):nth-child(first) {
   background-color: blue;
 }
 
index ac964b00b6cfa9be779ab797c8214ad6d7b4825b..4daf81fd1f7a0a04c2a86637000ffcbcef65449b 100644 (file)
@@ -4,7 +4,7 @@
   100% { background-color: blue; }
 }
 
-GtkWindow {
+window {
   background-color: #7F0080;
 }
 
index 5af202e55bc1d7fc2022e3ffab38502ff2e61ea3..363dccc5a2c9059e6085b2e3ed5d5f447ad6ee57 100644 (file)
@@ -1,6 +1,6 @@
 @import "reset-to-defaults.css";
 
-GtkWindow {
+window {
   color: alpha(currentColor, 0.0);
 }
 
index 068b9cffe63b96e6340435302f0f2d177bedb9fb..de9f069bff5e299fc919adf6247a4df86d3f46b0 100644 (file)
@@ -1,7 +1,6 @@
 @import url("reset-to-defaults.css");
 
 .window {
-  engine: none;
   background-image: none;
   background-color: lime;
   border-radius: 0;
index 421b6d40aeaf175c3dbebc401f3eb63099c2ccc9..2c29036ab35633fb18e0d97f8e07f0ddb1c45570 100644 (file)
@@ -6,6 +6,6 @@ GtkGrid GtkEventBox {
   background-color: red
 }
 
-GtkWindow > GtkGrid GtkEventBox {
+window > GtkGrid GtkEventBox {
   background-color: blue
 }
index 8cf1f0c0b0301939fc0f0eb14d0ec1a1041fcae8..b557e4fd1bc3b47ea4f9a4f54f705c66a5cfd7c7 100644 (file)
@@ -3,10 +3,10 @@
   color: lime;
 }
 
-:insensitive {
+:disabled {
   color: red;
 }
 
-label:insensitive {
+label:disabled {
   color: inherit;
 }
index f6d6a079a1f33d5f6c29bb677a68f09c11930537..b00d52761a80632bb83984874ac1b1dea4449fe6 100644 (file)
@@ -1,9 +1,8 @@
 * {
-  engine: none;
   color: inherit;
 }
 
-GtkButton {
+button {
   color: red;
 }
 
index d33f3fcfe08098cd9fcb1e0fc274ba389ee45c35..339f4a7b9af8fff130bca99e89a6c4b8bab77810 100644 (file)
@@ -1,7 +1,6 @@
 @import url("reset-to-defaults.css");
 
 #window {
-  engine: none;
   background-image: none;
   background-color: lime;
   border-radius: 0;
index 73fb4658516959185e59220f4d6fd8a38fba3d66..eb954541737c29bfe702747eb3df685c1434d845 100644 (file)
@@ -1,13 +1,12 @@
 @import url("reset-to-defaults.css");
 
-GtkWindow {
-  engine: none;
+window {
   background-image: none;
   background-color: lime;
   border-radius: 0;
   border-style: none;
 }
 
-NotGtkWindow {
+Notwindow {
   background-color: red;
 }
index bda44b3076afb7e23711d4bf2294601017ac7508..cd834ff1ff756ea09dc903833132d82a2b49339e 100644 (file)
@@ -1,5 +1,5 @@
 GtkToggleButton:checked,
-#reference:insensitive {
+#reference:disabled {
   color: lime;
 }
 
index 083669d512f46902c7589943dcc94ab9e9c910b9..5698467d4196f4e741afb2dcc8a67fd7c8b3269e 100644 (file)
@@ -1,3 +1,3 @@
-GtkBox {
+box {
   background-image: -gtk-icontheme("pan-down-symbolic");
 }
index 66310798b83ae5083afe7c60d068282772d817a3..c0e5e2dc3e8d999bd04650a05e7682cd7c83d8db 100644 (file)
@@ -3,7 +3,7 @@
 * {
   -gtk-icon-source: url("green-20x20.png");
   -gtk-icon-transform: scale(0.5);
-  icon-shadow: red 1px 1px;
+  -gtk-icon-shadow: red 1px 1px;
 }
 
 #transformed {
index 98b2d5e8ad1a5836e7b849c3a36f3f18e176d119..ef7aa5088eb2f9d1df48e25bdbf0ec3e1ccea5b6 100644 (file)
@@ -1,5 +1,5 @@
 @import "reset-to-defaults.css";
 
-GtkIconView, image {
+iconview, image {
   background-color: blue;
 }
index 4770cc103410c559f33facab73bdf06a66391ce0..1b977a6d81d4132343616d33706e914545e4c963 100644 (file)
@@ -1,5 +1,5 @@
 @import "reset-to-defaults.css";
 
-GtkImage {
-  icon-shadow: 20px 20px tomato;
+image {
+  -gtk-icon-shadow: 20px 20px tomato;
 }
index 37d4d08f536cd0a793ea886fc3d775e65804e92b..8ae517685053bc367f634b5f69993694f84624e3 100644 (file)
@@ -1,4 +1,4 @@
-GtkWindow {
+window {
   background: darkred; /* should never be seen */
 }
 
index 06f92adc2c8870c08e9f8e2261aaf9782aafd1f4..9598c1a4154b970de2a490928de92881fe8bb3b4 100644 (file)
@@ -1,5 +1,4 @@
 label {
-  engine: none;
   text-shadow: 1px 1px red;
 }
 
index 10b906c3d62ded21d514206035705382c517538c..d95ba8d33b81bf84afc91ad7e10e75fbb56d3ebd 100644 (file)
@@ -1,6 +1,6 @@
 @import "reset-to-defaults.css";
 
-GtkButton {
+button {
   border-width: 5px;
   border-style: solid;
   border-color: rgb(255,0,0);
index 93bad6ee8ad6567ff28fe1e966494f39a0b91e68..b8f28f68a3b3520642f54fab03aefcccc94d0695 100644 (file)
@@ -1,5 +1,4 @@
 * {
-  engine: none;
   border-radius: 0;
 }
 
index 09160c1d2c0818157968ffa335d13e3c39590613..4ac59da4308694a2a9ba093af9feefd0188481d2 100644 (file)
@@ -28,11 +28,11 @@ image, label, .menuitem {
     background-color: @color_tip;
 }
 
-*:insensitive {
+*:disabled {
     color: @color_dark;
 }
 
-*:selected, .menuitem:prelight, *:prelight {
+*:selected, .menuitem:hover , *:hover {
     background-color: @color_sel;
     color: white;
 }
@@ -41,7 +41,7 @@ GtkCheckButton:selected {
     background-color: @color_base;
 }
 
-.check:prelight, .check:selected, .radio:prelight, .radio:selected {
+.check:hover, .check:selected, .radio:hover, .radio:selected {
     background-color: white;
     color: black;
 }
@@ -53,22 +53,22 @@ GtkCheckButton:selected {
 
 /* GRADIENTS */
 
-.button, .notebook tab:active, .slider {
+button, .notebook tab:active, .slider {
     background-image: -gtk-gradient (linear, left top, left bottom,
      from (shade (@color_base, 1.2)), to (@color_base));
 }
 
-.button:active, .notebook tab, .trough {
+button:active, .notebook tab, .trough {
     background-image: -gtk-gradient (linear, left top, left bottom,
      from (shade (@color_base, 0.8)), to (@color_base));
 }
 
-.button.vertical, .slider.vertical {
+button.vertical, .slider.vertical {
     background-image: -gtk-gradient (linear, left top, right top,
      from (shade (@color_base, 1.2)), to (@color_base));
 }
 
-.button.vertical:active, .trough.vertical {
+button.vertical:active, .trough.vertical {
     background-image: -gtk-gradient (linear, left top, right top,
      from (shade (@color_base, 0.8)), to (@color_base));
 }
@@ -110,21 +110,21 @@ column-header > .button {
     padding: 0px 3px 0px 3px;
 }
 
-.button, .check, .entry, .frame, .notebook, .progressbar, .radio, .scale,
+button, .check, .entry, .frame, .notebook, .progressbar, .radio, .scale,
  .scrollbar, .slider, .trough {
     border-radius: 2px;
     border-width: 1px;
 }
 
-.notebook tab {
+notebook tab {
     padding: 2px;
 }
 
-.notebook tab:active {
+notebook tab:active {
     padding: 3px;
 }
 
-.button {
+button {
     padding: 3px;
 }
 
@@ -159,97 +159,3 @@ column-header > .button {
     border-width: 0px 0px 1px 0px;
 }
 
-.scrollbar {
-    border-radius: 0px;
-}
-
-.scrollbar.trough {
-    border-width: 1px 1px 0px 1px;
-}
-
-.scrollbar.trough.vertical {
-    border-width: 1px 0px 1px 1px;
-}
-
-.scrollbar.button.left, .scrollbar.button.right {
-    border-width: 1px 0px 0px 0px;
-}
-
-.scrollbar.button.top, .scrollbar.button.bottom {
-    border-width: 0px 0px 0px 1px;
-}
-
-.scrollbars-junction {
-    border-width: 1px 0px 0px 1px;
-}
-
-.scrollbar.slider {
-    border-width: 1px 1px 0px 1px;
-}
-
-.scrollbar.slider.vertical {
-    border-width: 1px 0px 1px 1px;
-}
-
-.separator {
-    border-width: 1px;
-    padding: 1px;
-}
-
-GtkComboBox .separator, GtkFontButton .separator {
-    border-width: 0px;
-    padding: 0px;
-}
-
-.tooltip {
-    border-width: 1px;
-    padding: 2px;
-}
-
-/* MISC SETTINGS */
-
-* {
-    -GtkButton-default-border: 0;
-    -GtkButton-image-spacing: 4;
-    -GtkButtonBox-child-internal-pad-x: 0;
-    -GtkButtonBox-child-internal-pad-y: 0;
-    -GtkButtonBox-child-min-width: 0;
-    -GtkButtonBox-child-min-height: 0;
-    -GtkCheckButton-indicator-size: 12;
-    -GtkCheckMenuItem-indicator-size: 12;
-    -GtkComboBox-arrow-scaling: 0.667;
-    -GtkDialog-action-area-border: 0;
-    -GtkDialog-button-spacing: 6;
-    -GtkDialog-content-area-border: 6;
-    -GtkDialog-content-area-spacing: 6;
-    -GtkEntry-inner-border: 1;
-    -GtkMenu-horizontal-padding: 1;
-    -GtkMenu-horizontal-offset: 0;
-    -GtkMenuBar-internal-padding: 0;
-    -GtkMenuItem-arrow-scaling: 0.667;
-    -GtkMenuItem-toggle-spacing: 6;
-    -GtkNotebook-tab-overlap: 1;
-    -GtkPaned-handle-size: 6;
-    -GtkProgressBar-min-horizontal-bar-height: 12;
-    -GtkProgressBar-min-vertical-bar-width: 12;
-    -GtkRange-slider-width: 12;
-    -GtkRange-trough-border: 0;
-    -GtkScale-slider-length: 30;
-    -GtkScrolledWindow-scrollbar-spacing: 0;
-    -GtkScrolledWindow-scrollbars-within-bevel: 1;
-    -GtkTreeView-horizontal-separator: 0;
-    -GtkTreeView-vertical-separator: 0;
-    -GtkWidget-focus-line-width: 0;
-    -GtkWidget-focus-padding: 0;
-    -GtkWidget-separator-height: 1;
-    -GtkWidget-separator-width: 1;
-    -GtkWidget-wide-separators: TRUE;
-    -GtkWindow-resize-grip-height: 0;
-}
-
-.scrollbar {
-    -GtkRange-slider-width: 17;
-    -GtkRange-stepper-size: 16;
-    -GtkRange-trough-under-steppers: FALSE;
-    -GtkScrollbar-min-slider-length: 18;
-}
index 31c216166f4d5c45b5c2bf00a55e4a7133b23b2a..94ef1353511d194dba911d382898377d381b3a5d 100644 (file)
@@ -1,6 +1,6 @@
 @import "reset-to-defaults.css";
 
-GtkWindow {
+window {
   background-color: @doesntexist;
   box-shadow: @nonexistant 5px 5px;
   border-image: -gtk-gradient(linear,